@import '../../../common/variable.less';

.layui-nav {
    position: relative;
    background-color: @theme-color;
    padding: 0;
    .layui-nav-item {
        position: relative;
        line-height:40px;
        // height: 40px;
        // width: 121px;
        width: 110px;
        &:hover {
           background: #f98a27; 
           .sub-nav {
               display: block;
           }
           .icon-arrow-down {
               margin-top: -6px;
               border-color: transparent transparent #fff transparent;
           }
        }
        a {
            display: block;
            color: #fff;
            font-size: 15px;
            padding: 0;
            text-align: center;
        }
        .icon-arrow-down {
            position: absolute;
            top: 50%;
            // right: 16px;
            right: 11px;
            width: 0;
            height: 0;
            margin-top: -1px;
            border-width: 4px;
            border-style: solid;
            border-color: #fff transparent transparent transparent;
        }
        &.has-new-icon {
            &::before{ 
                content: '';
                position: absolute;
                left: 50%;
                display: inline-block;
                width: 29px;
                height: 16px;
                margin-top: -8px;
                margin-left: -6px;
                background: url('../../../image/tishinew.png') no-repeat;
                animation: mapping 1s linear infinite;
            }
        }
    }
    .layui-this {
        background: #f98a27;
        &::after{
            content: none;
        }
    }
    .layui-nav-bar {
        display: none;
    }
    .tel {
        position: absolute;
        top: 0;
        right: 20px;
        line-height: 40px;
        span {
            display: inline-block;
            font-size: 18px;
            font-weight: bold;
            vertical-align: middle;
        }
    }
    .icon-phone {
        width: 15px;
        height: 18px;
        margin-right: 12px;
        background: url('../../../image/tel.jpg') no-repeat center center / contain;
    }

    .sub-nav {
        position: absolute;
        z-index: 30;
        display: none;
        width: 100%;
        background: @theme-color;
        dd {
            &:hover {
                background: #f98a27; 
            }
        }
        
    }
}

@keyframes mapping{
    0% {top: 0;}
    50%{top: -4px;}
    100% {top:0; }
}